FROM openjdk:11

ARG JAR_FILE=build/libs/*.jar
COPY ${JAR_FILE} app.jar
COPY bootstrap.yml bootstrap.yml


ENV JAVA_OPTS="-Xms1024m"
RUN set JAVA_OPTS=%JAVA_OPTS% ${JAVA_OPTS}


ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom", "-jar", "app.jar"]
